var
	i,j,n:integer;
	x:integer=1;
begin
	readln(n);
	{有 n 行}
	for i:=1 to n do
	begin
		{第行有 i 个数}
		for j:=1 to i do
		begin
			write(x,' ');
			inc(x);
		end;
		writeln;
	end;
end.